package com.w.wx.mapper;

import com.w.wx.domain.ChatMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ChatMessageMapper {
    int deleteByPrimaryKey(Integer messageId);

    int insert(ChatMessage record);

    ChatMessage selectByPrimaryKey(Integer messageId);

    List<ChatMessage> selectAll();

    int updateByPrimaryKey(ChatMessage record);

    ArrayList<ChatMessage> selectByOpenid(String toOpenid,String fromOpenid);
}